import tkinter
x = int(input('x = '))
y = int(input('y = '))
a = int(input('Введете коофицент увеличения: '))
master = tkinter.Tk()
canvas = tkinter.Canvas(master,bg='white',height=500,width=500)
if a == 0 and x >= 0 and x <= 500 and y >= 0 and y <= 500:
    pass
else:
    if a > 0 and 0*a+x>=0 and 0*a+y>=0 and 30*a+x<=500 and 20*a+y<=500:
        pass
    else:
        if a < 0 and 30*a+x>=0 and 20*a+y>=0 and 0*a+x<=500 and 0*a+y<=500:
            pass
        else:
            print('Размер фигуры превышает максимальный размер поля.')
            exit()
canvas.create_polygon((x,y), (10*a+x,y), (10*a+x,10*a+y), (2*10*a+x,10*a+y), (2*10*a+x,y), (3*10*a+x,y), (3*10*a+x,2*10*a+y), (x,2*10*a+y), fill='lime')
canvas.pack()
master.mainloop()